#! /bin/sh

# This script outputs certain information about the environment, for use when
# testing pipe transports.

cmd=/usr/xpg4/bin/id
[ -x $cmd ] || cmd=id
name=`$cmd -un`

echo Test pipe script
echo Running as: $name
echo ------------------
echo Args:
while [ "$1" != "" ]; do
  echo "  $1"
  shift
done
echo ----------current-----------
# strip trailing / from pwd result
d=`pwd`/dummy; dirname $d
echo ----------env-----------
echo A=$A
echo B=$B
echo C=$C
echo COLON=$COLON
echo DOMAIN=$DOMAIN
echo HOME=$HOME
echo LOCAL_PART=$LOCAL_PART
echo LOCAL_PART_PREFIX=$LOCAL_PART_PREFIX
echo LOCAL_PART_SUFFIX=$LOCAL_PART_SUFFIX
echo LOGNAME=$LOGNAME
echo ME=$ME
echo MESSAGE_ID=$MESSAGE_ID
echo PATH=$PATH
echo QUALIFY_DOMAIN=$QUALIFY_DOMAIN
echo RECIPIENT=$RECIPIENT
echo SENDER=$SENDER
echo SHELL=$SHELL
echo USER=$USER
echo ----------cat-----------
cat
echo ------------------

